package org.jsbd.boss.dao.impl;

import java.util.List;
import org.springframework.stereotype.Repository;

import org.jsbd.boss.dao.IMiguMusicRetentAddTimerDao;
import org.jsbd.boss.domian.MiguMusicRetentAddTimer;

@Repository("miguMusicRetentAddTimerDao")
public class MiguMusicRetentAddTimerDaoImpl extends CrackBaseDao implements IMiguMusicRetentAddTimerDao {

	@Override
	public void save(List<MiguMusicRetentAddTimer> list) {
		super.batchInsert("qy_migu_music_retent_add_timer.insert_qy_migu_music_retent_add_timer", list);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddTimer> getList(MiguMusicRetentAddTimer miguMusicRetentAddTimer) {
		return super.queryForList("qy_migu_music_retent_add_timer.select_list", miguMusicRetentAddTimer);
	}
	
	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("qy_migu_music_retent_add_timer.delete_by_id", ids);
	}
	
	@Override
	public void deleteByMiguMusicId(Integer miguMusicId) {
		super.update("qy_migu_music_retent_add_timer.delete_by_migu_music_id", miguMusicId);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddTimer> getIsDoList() {
		return super.queryForList("qy_migu_music_retent_add_timer.select_do_list");
	}

	@Override
	public int updateIsDo(Integer id) {
		return super.update("qy_migu_music_retent_add_timer.update_by_id", id);
	}
	
}
